Optimal. Leaf size=155 \[ -\frac {F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{d \sqrt {\tan (c+d x)}}-\frac {F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{d \sqrt {\tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3656, 926, 129,
525, 524} \begin {gather*} -\frac {(a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{d \sqrt {\tan (c+d x)}}-\frac {(a+b \tan (c+d x))^n \left (\frac {b \tan (c+d x)}{a}+1\right )^{-n} F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{d \sqrt {\tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 129
Rule 524
Rule 525
Rule 926
Rule 3656
Rubi steps
\begin {align*} \int \frac {(a+b \tan (c+d x))^n}{\tan ^{\frac {3}{2}}(c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {(a+b x)^n}{x^{3/2} \left (1+x^2\right )} \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (\frac {i (a+b x)^n}{2 (i-x) x^{3/2}}+\frac {i (a+b x)^n}{2 x^{3/2} (i+x)}\right ) \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {i \text {Subst}\left (\int \frac {(a+b x)^n}{(i-x) x^{3/2}} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac {i \text {Subst}\left (\int \frac {(a+b x)^n}{x^{3/2} (i+x)} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=\frac {i \text {Subst}\left (\int \frac {\left (a+b x^2\right )^n}{x^2 \left (i-x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}+\frac {i \text {Subst}\left (\int \frac {\left (a+b x^2\right )^n}{x^2 \left (i+x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {\left (i (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}\right ) \text {Subst}\left (\int \frac {\left (1+\frac {b x^2}{a}\right )^n}{x^2 \left (i-x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}+\frac {\left (i (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}\right ) \text {Subst}\left (\int \frac {\left (1+\frac {b x^2}{a}\right )^n}{x^2 \left (i+x^2\right )} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=-\frac {F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{d \sqrt {\tan (c+d x)}}-\frac {F_1\left (-\frac {1}{2};1,-n;\frac {1}{2};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) (a+b \tan (c+d x))^n \left (1+\frac {b \tan (c+d x)}{a}\right )^{-n}}{d \sqrt {\tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 1.52, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(a+b \tan (c+d x))^n}{\tan ^{\frac {3}{2}}(c+d x)} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.38, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \tan \left (d x +c \right )\right )^{n}}{\tan \left (d x +c \right )^{\frac {3}{2}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \tan {\left (c + d x \right )}\right )^{n}}{\tan ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^n}{{\mathrm {tan}\left (c+d\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________